package org.kent.w.base.api.exception;

import org.kent.w.base.api.code.IResponseCode;

import java.text.MessageFormat;

/**
 * 参数校验异常
 *
 * @author wu.jigang@geely.com
 * @version 1.0
 * @Date :Created by 2020/3/2.
 */
public class ParamCheckException extends BaseRuntimeException {

    private static final long serialVersionUID = -2117940436996458806L;

    public ParamCheckException(IResponseCode responseCode, Object ... args) {
        super(responseCode.getCode(), MessageFormat.format(responseCode.getMessage(), args));
    }
}
